package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.List;

public class GameapplyrecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public GameapplyrecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGarnoIsNull() {
            addCriterion("garno is null");
            return (Criteria) this;
        }

        public Criteria andGarnoIsNotNull() {
            addCriterion("garno is not null");
            return (Criteria) this;
        }

        public Criteria andGarnoEqualTo(String value) {
            addCriterion("garno =", value, "garno");
            return (Criteria) this;
        }

        public Criteria andGarnoNotEqualTo(String value) {
            addCriterion("garno <>", value, "garno");
            return (Criteria) this;
        }

        public Criteria andGarnoGreaterThan(String value) {
            addCriterion("garno >", value, "garno");
            return (Criteria) this;
        }

        public Criteria andGarnoGreaterThanOrEqualTo(String value) {
            addCriterion("garno >=", value, "garno");
            return (Criteria) this;
        }

        public Criteria andGarnoLessThan(String value) {
            addCriterion("garno <", value, "garno");
            return (Criteria) this;
        }

        public Criteria andGarnoLessThanOrEqualTo(String value) {
            addCriterion("garno <=", value, "garno");
            return (Criteria) this;
        }

        public Criteria andGarnoLike(String value) {
            addCriterion("garno like", value, "garno");
            return (Criteria) this;
        }

        public Criteria andGarnoNotLike(String value) {
            addCriterion("garno not like", value, "garno");
            return (Criteria) this;
        }

        public Criteria andGarnoIn(List<String> values) {
            addCriterion("garno in", values, "garno");
            return (Criteria) this;
        }

        public Criteria andGarnoNotIn(List<String> values) {
            addCriterion("garno not in", values, "garno");
            return (Criteria) this;
        }

        public Criteria andGarnoBetween(String value1, String value2) {
            addCriterion("garno between", value1, value2, "garno");
            return (Criteria) this;
        }

        public Criteria andGarnoNotBetween(String value1, String value2) {
            addCriterion("garno not between", value1, value2, "garno");
            return (Criteria) this;
        }

        public Criteria andGrnoIsNull() {
            addCriterion("grno is null");
            return (Criteria) this;
        }

        public Criteria andGrnoIsNotNull() {
            addCriterion("grno is not null");
            return (Criteria) this;
        }

        public Criteria andGrnoEqualTo(String value) {
            addCriterion("grno =", value, "grno");
            return (Criteria) this;
        }

        public Criteria andGrnoNotEqualTo(String value) {
            addCriterion("grno <>", value, "grno");
            return (Criteria) this;
        }

        public Criteria andGrnoGreaterThan(String value) {
            addCriterion("grno >", value, "grno");
            return (Criteria) this;
        }

        public Criteria andGrnoGreaterThanOrEqualTo(String value) {
            addCriterion("grno >=", value, "grno");
            return (Criteria) this;
        }

        public Criteria andGrnoLessThan(String value) {
            addCriterion("grno <", value, "grno");
            return (Criteria) this;
        }

        public Criteria andGrnoLessThanOrEqualTo(String value) {
            addCriterion("grno <=", value, "grno");
            return (Criteria) this;
        }

        public Criteria andGrnoLike(String value) {
            addCriterion("grno like", value, "grno");
            return (Criteria) this;
        }

        public Criteria andGrnoNotLike(String value) {
            addCriterion("grno not like", value, "grno");
            return (Criteria) this;
        }

        public Criteria andGrnoIn(List<String> values) {
            addCriterion("grno in", values, "grno");
            return (Criteria) this;
        }

        public Criteria andGrnoNotIn(List<String> values) {
            addCriterion("grno not in", values, "grno");
            return (Criteria) this;
        }

        public Criteria andGrnoBetween(String value1, String value2) {
            addCriterion("grno between", value1, value2, "grno");
            return (Criteria) this;
        }

        public Criteria andGrnoNotBetween(String value1, String value2) {
            addCriterion("grno not between", value1, value2, "grno");
            return (Criteria) this;
        }

        public Criteria andCnoIsNull() {
            addCriterion("cno is null");
            return (Criteria) this;
        }

        public Criteria andCnoIsNotNull() {
            addCriterion("cno is not null");
            return (Criteria) this;
        }

        public Criteria andCnoEqualTo(String value) {
            addCriterion("cno =", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotEqualTo(String value) {
            addCriterion("cno <>", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoGreaterThan(String value) {
            addCriterion("cno >", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoGreaterThanOrEqualTo(String value) {
            addCriterion("cno >=", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoLessThan(String value) {
            addCriterion("cno <", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoLessThanOrEqualTo(String value) {
            addCriterion("cno <=", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoLike(String value) {
            addCriterion("cno like", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotLike(String value) {
            addCriterion("cno not like", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoIn(List<String> values) {
            addCriterion("cno in", values, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotIn(List<String> values) {
            addCriterion("cno not in", values, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoBetween(String value1, String value2) {
            addCriterion("cno between", value1, value2, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotBetween(String value1, String value2) {
            addCriterion("cno not between", value1, value2, "cno");
            return (Criteria) this;
        }

        public Criteria andGarnumberIsNull() {
            addCriterion("garNumber is null");
            return (Criteria) this;
        }

        public Criteria andGarnumberIsNotNull() {
            addCriterion("garNumber is not null");
            return (Criteria) this;
        }

        public Criteria andGarnumberEqualTo(String value) {
            addCriterion("garNumber =", value, "garnumber");
            return (Criteria) this;
        }

        public Criteria andGarnumberNotEqualTo(String value) {
            addCriterion("garNumber <>", value, "garnumber");
            return (Criteria) this;
        }

        public Criteria andGarnumberGreaterThan(String value) {
            addCriterion("garNumber >", value, "garnumber");
            return (Criteria) this;
        }

        public Criteria andGarnumberGreaterThanOrEqualTo(String value) {
            addCriterion("garNumber >=", value, "garnumber");
            return (Criteria) this;
        }

        public Criteria andGarnumberLessThan(String value) {
            addCriterion("garNumber <", value, "garnumber");
            return (Criteria) this;
        }

        public Criteria andGarnumberLessThanOrEqualTo(String value) {
            addCriterion("garNumber <=", value, "garnumber");
            return (Criteria) this;
        }

        public Criteria andGarnumberLike(String value) {
            addCriterion("garNumber like", value, "garnumber");
            return (Criteria) this;
        }

        public Criteria andGarnumberNotLike(String value) {
            addCriterion("garNumber not like", value, "garnumber");
            return (Criteria) this;
        }

        public Criteria andGarnumberIn(List<String> values) {
            addCriterion("garNumber in", values, "garnumber");
            return (Criteria) this;
        }

        public Criteria andGarnumberNotIn(List<String> values) {
            addCriterion("garNumber not in", values, "garnumber");
            return (Criteria) this;
        }

        public Criteria andGarnumberBetween(String value1, String value2) {
            addCriterion("garNumber between", value1, value2, "garnumber");
            return (Criteria) this;
        }

        public Criteria andGarnumberNotBetween(String value1, String value2) {
            addCriterion("garNumber not between", value1, value2, "garnumber");
            return (Criteria) this;
        }

        public Criteria andGardescribeIsNull() {
            addCriterion("garDescribe is null");
            return (Criteria) this;
        }

        public Criteria andGardescribeIsNotNull() {
            addCriterion("garDescribe is not null");
            return (Criteria) this;
        }

        public Criteria andGardescribeEqualTo(String value) {
            addCriterion("garDescribe =", value, "gardescribe");
            return (Criteria) this;
        }

        public Criteria andGardescribeNotEqualTo(String value) {
            addCriterion("garDescribe <>", value, "gardescribe");
            return (Criteria) this;
        }

        public Criteria andGardescribeGreaterThan(String value) {
            addCriterion("garDescribe >", value, "gardescribe");
            return (Criteria) this;
        }

        public Criteria andGardescribeGreaterThanOrEqualTo(String value) {
            addCriterion("garDescribe >=", value, "gardescribe");
            return (Criteria) this;
        }

        public Criteria andGardescribeLessThan(String value) {
            addCriterion("garDescribe <", value, "gardescribe");
            return (Criteria) this;
        }

        public Criteria andGardescribeLessThanOrEqualTo(String value) {
            addCriterion("garDescribe <=", value, "gardescribe");
            return (Criteria) this;
        }

        public Criteria andGardescribeLike(String value) {
            addCriterion("garDescribe like", value, "gardescribe");
            return (Criteria) this;
        }

        public Criteria andGardescribeNotLike(String value) {
            addCriterion("garDescribe not like", value, "gardescribe");
            return (Criteria) this;
        }

        public Criteria andGardescribeIn(List<String> values) {
            addCriterion("garDescribe in", values, "gardescribe");
            return (Criteria) this;
        }

        public Criteria andGardescribeNotIn(List<String> values) {
            addCriterion("garDescribe not in", values, "gardescribe");
            return (Criteria) this;
        }

        public Criteria andGardescribeBetween(String value1, String value2) {
            addCriterion("garDescribe between", value1, value2, "gardescribe");
            return (Criteria) this;
        }

        public Criteria andGardescribeNotBetween(String value1, String value2) {
            addCriterion("garDescribe not between", value1, value2, "gardescribe");
            return (Criteria) this;
        }

        public Criteria andGarstateIsNull() {
            addCriterion("garState is null");
            return (Criteria) this;
        }

        public Criteria andGarstateIsNotNull() {
            addCriterion("garState is not null");
            return (Criteria) this;
        }

        public Criteria andGarstateEqualTo(Integer value) {
            addCriterion("garState =", value, "garstate");
            return (Criteria) this;
        }

        public Criteria andGarstateNotEqualTo(Integer value) {
            addCriterion("garState <>", value, "garstate");
            return (Criteria) this;
        }

        public Criteria andGarstateGreaterThan(Integer value) {
            addCriterion("garState >", value, "garstate");
            return (Criteria) this;
        }

        public Criteria andGarstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("garState >=", value, "garstate");
            return (Criteria) this;
        }

        public Criteria andGarstateLessThan(Integer value) {
            addCriterion("garState <", value, "garstate");
            return (Criteria) this;
        }

        public Criteria andGarstateLessThanOrEqualTo(Integer value) {
            addCriterion("garState <=", value, "garstate");
            return (Criteria) this;
        }

        public Criteria andGarstateIn(List<Integer> values) {
            addCriterion("garState in", values, "garstate");
            return (Criteria) this;
        }

        public Criteria andGarstateNotIn(List<Integer> values) {
            addCriterion("garState not in", values, "garstate");
            return (Criteria) this;
        }

        public Criteria andGarstateBetween(Integer value1, Integer value2) {
            addCriterion("garState between", value1, value2, "garstate");
            return (Criteria) this;
        }

        public Criteria andGarstateNotBetween(Integer value1, Integer value2) {
            addCriterion("garState not between", value1, value2, "garstate");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}